package com.vedana.bankmobile.shared;

import java.io.Serializable;

/**
 * Bank account domain object.
 * 
 * @author Didier MOISE
 *
 */
public class Account implements Serializable {
	private static final long serialVersionUID = -8129734547673873421L;

	private long id;

	private long customerId;
	
	private String label;
	
	private double balance;

	/**
	 * @return unique identifier
	 */
	public long getId() {
		return id;
	}

	/**
	 * @param id the unique identifier to set
	 */
	public void setId(long id) {
		this.id = id;
	}

	/**
	 * @return customer id
	 */
	public long getCustomerId() {
		return customerId;
	}

	/**
	 * @param customerId the customer id to set
	 */
	public void setCustomerId(long customerId) {
		this.customerId = customerId;
	}

	/**
	 * @return label
	 */
	public String getLabel() {
		return label;
	}

	/**
	 * @param label the label to set
	 */
	public void setLabel(String label) {
		this.label = label;
	}

	/**
	 * @return account balance
	 */
	public double getBalance() {
		return balance;
	}

	/**
	 * @param balance the account balance to set
	 */
	public void setBalance(double balance) {
		this.balance = balance;
	}

	@Override
	public String toString() {
		return "Account [id=" + id + ", customerId=" + customerId + ", label="
				+ label + ", balance=" + balance + "]";
	}
}
